﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Customer_List.aspx.cs" Inherits="TimKen.Web.Admin.Customer.Customer_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuCustomerList")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <!-- 客户搜索 -->
    <div class="form-div">
        <img src="../images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        <!-- ERP编号 -->
        <%=GetLangString("CardCode")%>：<asp:TextBox ID="txtCardCode" runat="server"></asp:TextBox>
        <!-- 客户名称 -->
        <%=GetLangString("CustomerName")%>：<asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
    </div>
    <div class="list-div">
        <!-- 客户列表 -->
        <asp:GridView ID="grdCustomer" runat="server" AutoGenerateColumns="False" DataKeyNames="CustomerID"
            AllowSorting="True" CssClass="grid" onsorting="grdCustomer_Sorting">
            <Columns>
                <%--<asp:TemplateField  SortExpression="CardCode">
                    <ItemStyle Width="150" />
                    <HeaderTemplate>
                        <%=GetLangString("CardCode")%>
                    </HeaderTemplate>
                    <ItemTemplate >
                        <%#Eval("CardCode")%>
                    </ItemTemplate> 
                </asp:TemplateField>--%>
               <asp:BoundField DataField="CardCode"  SortExpression="CardCode" />
               <asp:BoundField DataField="CustomerForeignName" SortExpression="CustomerForeignName" />
               <asp:BoundField DataField="CustomerName"  SortExpression="CustomerName" />
               <asp:BoundField DataField="ContactPerson"  SortExpression="ContactPerson" />
               <asp:BoundField DataField="Telephone"  SortExpression="Telephone" />
              
                <asp:TemplateField >
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <a href='Customer_Info.aspx?CustomerID=<%#DataBinder.Eval(Container.DataItem, "CustomerID")%>'
                            title='<%#GetLangString("DetailInfo")%>'>
                            <img src="../images/icon_detail.gif" /></a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <div class="pager-div">
            <ux:AspNetPager ID="AspNetPager1" runat="server" Width="100%" ShowPageIndexBox="Always"
                HorizontalAlign="right" EnableTheming="true" AlwaysShow="true" PageIndexBoxType="DropDownList"
                OnPageChanged="AspNetPager1_PageChanged" ImagePath="/images/" 
                        NavigationButtonType="Image" ButtonImageNameExtension="n" 
                        CpiButtonImageNameExtension="r" PagingButtonType="Image">
            </ux:AspNetPager>
        </div>
    </div>
</asp:Content>
